/*
 * Copyright 2011 Etienne Pelletier
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.example.server.requestfactory;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.web.bindery.requestfactory.server.ExceptionHandler;
import com.google.web.bindery.requestfactory.server.RequestFactoryServlet;
import com.google.web.bindery.requestfactory.server.ServiceLayerDecorator;

/**
 * This is a Guice-injected RequestFactoryServlet.  Use this to replace the
 * standard non-dependency-injected RequestFactory servlet.
 * 
 * @author Etienne Pelletier
 *
 */
@Singleton
public class InjectedRequestFactoryServlet extends RequestFactoryServlet {

  private static final long serialVersionUID = 4253565330598588252L;

  @Inject
  protected InjectedRequestFactoryServlet(final ExceptionHandler exceptionHandler,
                                          final ServiceLayerDecorator serviceLayerDecorator) {
    super(exceptionHandler, serviceLayerDecorator);
  }

}
